package com.rnkrsoft.suyan.config.server.services.authority.domains;

import com.rnkrsoft.suyan.config.internal.enums.ResourceTypeEnum;
import lombok.Builder;
import lombok.Data;

import javax.doc.annotation.ApidocElement;
import java.io.Serializable;

/**
 * Created by woate on 2019/5/19.
 */
@Data
@Builder
public class QueryAuthorityRecord implements Serializable {
    @ApidocElement(value = "权限编号",  maxLen = 36)
    String authorityId;
    @ApidocElement(value = "资源", maxLen = 36)
    String resourceId;
    @ApidocElement(value = "资源名", maxLen = 20)
    String resourceName;
    @ApidocElement(value = "资源类型", maxLen = 5, enumClass = ResourceTypeEnum.class, defaults = "1")
    Integer resourceType;
    @ApidocElement(value = "组织编号", maxLen = 20)
    String groupId;
    @ApidocElement(value = "组件编号", maxLen = 20)
    String artifactId;
    @ApidocElement(value = "版本", maxLen = 6)
    String version;
    @ApidocElement(value = "环境", maxLen = 6)
    String environmentName;
    @ApidocElement(value = "机器", maxLen = 10)
    String machineName;
    @ApidocElement(value = "用户", maxLen = 10)
    String userName;
    @ApidocElement(value = "操作员", maxLen = 10)
    String createOperatorName;
}
